<template>
  <el-table-column :label="config.name" align="center" :width="config.width" :prop="config.value">
    <template v-if="config.child?.length">
      <tableColumn v-for="(item, index) in config.child" :key="index" :config="item" />
    </template>
  </el-table-column>
</template>
<script>
export default {
  name: 'tableColumn'
}
</script>
<script setup>
const prop = defineProps({
  config: {
    type: Object,
    default: () => {}
  }
})
</script>

<style lang="scss" scoped></style>
